require 'async_rack'
require 'encrypted_cookie'

module AsyncRack
  module Session
    class EncryptedCookie < AsyncRack::AsyncCallback(:EncryptedCookie, Rack::Session)
      def async_callback(result)
        super commit_session(env, *result)
      end
    end
  end
end